package com.ytxg.util.jdk8;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        CommandNo c1 = new CommandNo() {
            @Override
            public void test() {
                System.out.println("Test1");
            }
        };
        CommandNo c2 = () -> System.out.println("Test2 Lambda");
        CommandOne c3 = (int x) -> System.out.println(x);
        CommandOneReturn c4 = (int x) ->{
            return x+10;
        };



        c1.test();
        c2.test();
        c3.test(10);
        int test = c4.test(10);
        System.out.println(test);
        System.out.println("==========================");


        String[] arr = {"11","fdsf","jfk1`klkl","f"};
        Arrays.sort(arr,new LengthConpare());
        System.out.println(Arrays.toString(arr));


    }

}
